package com.ukao.pad.bean;

import static com.tencent.bugly.crashreport.crash.c.f;

/**
 * Created by ukaodev on 2017/6/27.
 */

public class AccountLoginBean extends  BaseBean<AccountLoginBean> {


        /**
         * factoryInfo : {"id":2,"mercId":1,"cityId":1,"code":"62252644","name":"观象二路","tel":null,"workId":null,"regionalId":4301,"regionalDesc":"湖南省长沙市","addrDesc":"喻飞志30号-1-5","longitude":"180.00000000","latitude":"90.00000000","shelfMode":1,"status":1,"createBy":1,"createTime":1495089724000,"updateBy":2,"updateTime":1510136655000}
         * accessToken : deiz3j6m1cvutx29wdmhymwoawf5q0jl
         * mercInfo : {"name":"友靠商户"}
         * kindId : 4
         * factoryId : 2
         * workerInfo : {"id":36,"mercId":1,"cityId":null,"wxId":-1,"name":"这是个工厂账号","phone":"12333333322","code":"33333322","imgPath":null,"isRest":1,"status":1,"roleId":1,"isBinding":0,"createBy":1,"createTime":1501207739000,"updateBy":null,"updateTime":null}
         */

        private FactoryInfoBean factoryInfo;
        private String accessToken;
        private MercInfoBean mercInfo;
        private int kindId;
        private int factoryId;
        private WorkerInfoBean workerInfo;
        private   int  shelfMode;  //上架模式 1.自动上架 2.手动上架


    public boolean getShelfMode() {
            if (shelfMode==1){
                return  true;
            }

        return false;
    }

    public void setShelfMode(int shelfMode) {
        this.shelfMode = shelfMode;
    }

    public FactoryInfoBean getFactoryInfo() {
            return factoryInfo;
        }

        public void setFactoryInfo(FactoryInfoBean factoryInfo) {
            this.factoryInfo = factoryInfo;
        }

        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public MercInfoBean getMercInfo() {
            return mercInfo;
        }

        public void setMercInfo(MercInfoBean mercInfo) {
            this.mercInfo = mercInfo;
        }

        public int getKindId() {
            return kindId;
        }

        public void setKindId(int kindId) {
            this.kindId = kindId;
        }

        public int getFactoryId() {
            return factoryId;
        }

        public void setFactoryId(int factoryId) {
            this.factoryId = factoryId;
        }

        public WorkerInfoBean getWorkerInfo() {
            return workerInfo;
        }

        public void setWorkerInfo(WorkerInfoBean workerInfo) {
            this.workerInfo = workerInfo;
        }

        public static class FactoryInfoBean {
            /**
             * id : 2
             * mercId : 1
             * cityId : 1
             * code : 62252644
             * name : 观象二路
             * tel : null
             * workId : null
             * regionalId : 4301
             * regionalDesc : 湖南省长沙市
             * addrDesc : 喻飞志30号-1-5
             * longitude : 180.00000000
             * latitude : 90.00000000
             * shelfMode : 1
             * status : 1
             * createBy : 1
             * createTime : 1495089724000
             * updateBy : 2
             * updateTime : 1510136655000
             */


            private  int inType;
            private int id;
            private int mercId;
            private int cityId;
            private String code;
            private String name;
            private Object tel;
            private Object workId;
            private int regionalId;
            private String regionalDesc;
            private String addrDesc;
            private String longitude;
            private String latitude;
            private int shelfMode;
            private int status;
            private int createBy;
            private long createTime;
            private int updateBy;
            private long updateTime;


            public int getInType() {
                return inType;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Object getTel() {
                return tel;
            }

            public void setTel(Object tel) {
                this.tel = tel;
            }

            public Object getWorkId() {
                return workId;
            }

            public void setWorkId(Object workId) {
                this.workId = workId;
            }

            public int getRegionalId() {
                return regionalId;
            }

            public void setRegionalId(int regionalId) {
                this.regionalId = regionalId;
            }

            public String getRegionalDesc() {
                return regionalDesc;
            }

            public void setRegionalDesc(String regionalDesc) {
                this.regionalDesc = regionalDesc;
            }

            public String getAddrDesc() {
                return addrDesc;
            }

            public void setAddrDesc(String addrDesc) {
                this.addrDesc = addrDesc;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }

            public int getShelfMode() {
                return shelfMode;
            }

            public void setShelfMode(int shelfMode) {
                this.shelfMode = shelfMode;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(int updateBy) {
                this.updateBy = updateBy;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }

        public static class MercInfoBean {
            /**
             * name : 友靠商户
             */

            private String name;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        public static class WorkerInfoBean {
            /**
             * id : 36
             * mercId : 1
             * cityId : null
             * wxId : -1
             * name : 这是个工厂账号
             * phone : 12333333322
             * code : 33333322
             * imgPath : null
             * isRest : 1
             * status : 1
             * roleId : 1
             * isBinding : 0
             * createBy : 1
             * createTime : 1501207739000
             * updateBy : null
             * updateTime : null
             */

            private int id;
            private int mercId;
            private Object cityId;
            private int wxId;
            private String name;
            private String phone;
            private String code;
            private String imgPath;
            private int isRest;
            private int status;
            private int roleId;
            private int isBinding;
            private int createBy;
            private long createTime;
            private Object updateBy;
            private Object updateTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public Object getCityId() {
                return cityId;
            }

            public void setCityId(Object cityId) {
                this.cityId = cityId;
            }

            public int getWxId() {
                return wxId;
            }

            public void setWxId(int wxId) {
                this.wxId = wxId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getImgPath() {
                return imgPath;
            }

            public void setImgPath(String imgPath) {
                this.imgPath = imgPath;
            }

            public int getIsRest() {
                return isRest;
            }

            public void setIsRest(int isRest) {
                this.isRest = isRest;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getRoleId() {
                return roleId;
            }

            public void setRoleId(int roleId) {
                this.roleId = roleId;
            }

            public int getIsBinding() {
                return isBinding;
            }

            public void setIsBinding(int isBinding) {
                this.isBinding = isBinding;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }
        }

}

